/**
 * Created by Qingger Corp.
 * User: Administrator
 * Date: 2019-05-17
 * Time: 14:57
 */
import request from '@/utils/request'

//获取店铺信息
export function getStorInfo() {
  return request({
    url:'/shop/store/info',
    method:'get',
  })
}


//保存店铺信息
export function getStorEdit(data) {
  return request({
    url:'/shop/store/edit',
    method:'post',
    data
  })
}

/**
 * 获取省市区列表
 */
export function getAreaList() {
  return request({
    url:'/shop/common/areaList',
    method:'get',
  })
}

//获取广告链接优惠券活动列表
export function getCouponActivityList() {
  return request({
    url:'/shop/couponActivity/listAll',
    method:'get',
  })
}

/**
 * 获取广告列表
 */
export function getADList() {
  return request({
    url:'/shop/store/ADTypeList',
    method:'get',
  })
}


/**
 * 获取广告详情
 */
export function getADInfo(params) {
  return request({
    url:'/shop/store/ADDataList',
    method:'get',
    params:params
  })
}


/**
 * 保存广告
 */
export function upDataADInfo(data) {
  return request({
    url:'/shop/store/ADDataEdit',
    method:'post',
    data:data
  })
}

/**
 * 删除广告图片
 */
export function delADimg(data) {
  return request({
    url:'/shop/store/ADDataDel',
    method:'post',
    data:data
  })
}


/**
 * 物流列表
 */
export function transportList(params) {
  return request({
    url:'/shop/store/transportList',
    method:'get',
    params:params
  })
}


/**
 * 物流模板详情
 */
export function transportDetail(trans_id) {
  return request({
    url:'/shop/transport/detail',
    method:'get',
    params:{trans_id:trans_id}
  })
}


/**
 * 物流模板保存
 */
export function transportSave(data) {
  return request({
    url:'/shop/transport/edit',
    method:'post',
    data:data
  })
}

//物流模板删除
export function transportDel(trans_id) {
  return request({
    url:'/shop/transport/delete',
    method:'post',
    data:{trans_id:trans_id}
  })
}

//获取模板消息
export function wxTPInfo() {
  return request({
    url:'/shop/store/wxTPInfo',
    method:'get',
  })
}


//保存模板消息
export function wxSaveTPInfo(data) {
  return request({
    url:'/shop/store/wxTPEdit',
    method:'post',
    data:data
  })
}


//获取店铺热搜词
export function searchWordList(params) {
  return request({
    url:'/shop/store/searchWord',
    method:'get',
    params:params
  })
}


//编辑店铺热搜词
export function searchWordEdit(data) {
  return request({
    url:'/shop/store/searchWordEdit',
    method:'post',
    data:data
  })
}


//删除店铺热搜词
export function searchWordDel(data) {
  return request({
    url:'/shop/store/SearchWordDel',
    method:'post',
    data:data
  })
}

//修改店铺热搜词推荐
export function editSearchWord(data) {
  return request({
    url:'/shop/recommend/SearchWord',
    method:'post',
    data:data
  })
}

//获取仓库列表
export function warehouseList(data) {
  return request({
    url:'/warehouse/list',
    method:'post',
    data:data
  })
}
//仓库添加
export function warehouseAdd(data) {
  return request({
    url:'/warehouse/add',
    method:'post',
    data:data
  })
}
//仓库编辑
export function warehouseEdit(data) {
  return request({
    url:'/warehouse/edit',
    method:'post',
    data:data
  })
}
//仓库删除
export function delWarehouse(data) {
  return request({
    url:'/warehouse/delete',
    method:'post',
    data:data
  })
}

//商品限额配置列表
export function goodsLimitList(data) {
  return request({
    url:'/deliver/goodsLimitList',
    method:'post',
    data:data
  })
}

//商品限额配置编辑
export function editGoodsLimit(data) {
  return request({
    url:'/deliver/editGoodsLimit',
    method:'post',
    data:data
  })
}

//商品限额配置新增
export function addGoodsLimit(data) {
  return request({
    url:'/deliver/addGoodsLimit',
    method:'post',
    data:data
  })
}

//商品限额配置删除
export function delGoodsLimit(data) {
  return request({
    url:'/deliver/deleteGoodsLimit',
    method:'post',
    data:data
  })
}

//商品限额商品列表
export function goodsList(data) {
  return request({
    url:'/getGoodsList',
    method:'post',
    data:data
  })
}

//日历数量获取
export function getPlanList(data) {
  return request({
    url:'/deliver/planList',
    method:'post',
    data:data
  })
}

//排货列表 - 需安排
export function getUnPlanList(data) {
  return request({
    url:'/deliver/orderGoodsList',
    method:'post',
    data:data
  })
}

//排货列表 - 已安排
export function getPlanGoodsList(data) {
  return request({
    url:'/deliver/planGoodsList',
    method:'post',
    data:data
  })
}

//获取仓库详情
export function getWarehouseDetail(data) {
  return request({
    url:'/warehouse/detail',
    method:'post',
    data:data
  })
}

//合同商品排货
export function postPlanGoods(data) {
  return request({
    url:'/deliver/planOrderGoods',
    method:'post',
    data:data
  })
}

//合同商品排货列表
export function getGoodsPlanList(data) {
  return request({
    url:'/deliver/goodsPlanList',
    method:'post',
    data:data
  })
}

//修改提货时间
export function changePlanDate(data) {
  return request({
    url:'/deliver/changePlanDate',
    method:'post',
    data:data
  })
}

//取消提货安排
export function cancelGoodsPlan(data) {
  return request({
    url:'/deliver/cancelGoodsPlan',
    method:'post',
    data:data
  })
}

//提货自提信息
export function selfTakeInfo(data) {
  return request({
    url:'/deliver/selfTakeInfo',
    method:'post',
    data:data
  })
}

//获取筛选项 - 需安排
export function ordGoodsFilter(data) {
  return request({
    url:'/deliver/ordGoodsFilter',
    method:'post',
    data:data
  })
}

//获取筛选项 - 已安排
export function planGoodsFilter(data) {
  return request({
    url:'/deliver/planGoodsFilter',
    method:'post',
    data:data
  })
}

//账期选项列表
export function accountPeriodListApi(data) {
  return request({
    url:'/common/accountPeriodList',
    method:'post',
    data:data
  })
}


//供应商列表
export function supplierListApi(data) {
  return request({
    url:'/supplier/list',
    method:'post',
    data:data
  })
}

//供应商详情
export function getSupplierInfo(data) {
  return request({
    url:'/supplier/detail',
    method:'post',
    data:data
  })
}

//供应商新增/编辑
export function supplierEdit(data) {
  return request({
    url:'/supplier/edit',
    method:'post',
    data:data
  })
}

//供应商联系人列表
export function supplierContactList(data) {
  return request({
    url:'/supplier/contactList',
    method:'post',
    data:data
  })
}


//供应商联系人添加&修改
export function supplierContactEdit(data) {
  return request({
    url:'/supplier/contactEdit',
    method:'post',
    data:data
  })
}

//供应商材料列表supplier/goodsAdd
export function supplierGoodsList(data) {
  return request({
    url:'/supplier/goodsList',
    method:'post',
    data:data
  })
}

//供应商材料添加
export function supplierGoodsAdd(data) {
  return request({
    url:'/supplier/goodsAdd',
    method:'post',
    data:data
  })
}

//询价记录列表
export function supplierInquiryList(data) {
  return request({
    url:'/supplier/inquiryList',
    method:'post',
    data:data
  })
}

//新增询价记录
export function supplierInquiryAdd(data) {
  return request({
    url:'/supplier/inquiryAdd',
    method:'post',
    data:data
  })
}

//供应商联系人删除
export function supplierContactDel(data) {
  return request({
    url:'/supplier/contactDel',
    method:'post',
    data:data
  })
}

//供应商材料删除
export function supplierGoodsDel(data) {
  return request({
    url:'/supplier/goodsDel',
    method:'post',
    data:data
  })
}

//询价记录删除
export function supplierInquiryDel(data) {
  return request({
    url:'/supplier/inquiryDel',
    method:'post',
    data:data
  })
}

//询价记录报表
export function inquiryReport(data) {
  return request({
    url:'/supplier/inquiryReport',
    method:'post',
    data:data
  })
}

//评价列表
export function evaluateList(data) {
  return request({
    url:'/supplier/evaluateList',
    method:'post',
    data:data
  })
}

//评价添加&编辑
export function editEvaluate(data) {
  return request({
    url:'/supplier/editEvaluate',
    method:'post',
    data:data
  })
}

//设置材料是否常用
export function setGoods(data) {
  return request({
    url:'/supplier/setGoods',
    method:'post',
    data:data
  })
}

//供应商联系人选项列表
export function commonSupplierContactList(data) {
  return request({
    url:'/common/supplierContactList',
    method:'post',
    data:data
  })
}

//获取产品线采购
export function getCrmGoodsClass(data) {
  return request({
    url:'/goods/crmGoodsClass',
    method:'post',
    data:data
  })
}




//采购排货日历数量获取
export function getPurchasePlanList(data) {
  return request({
    url:'/purchase/planList',
    method:'post',
    data:data
  })
}

//采购排货 - 需安排
export function getPurchaseUnPlanList(data) {
  return request({
    url:'/purchase/ordGoodsList',
    method:'post',
    data:data
  })
}

//采购排货 - 已安排
export function getPurchasePlanGoodsList(data) {
  return request({
    url:'/purchase/planGoodsList',
    method:'post',
    data:data
  })
}


//采购排货获取筛选项 - 需安排
export function ordPurchaseGoodsFilter(data) {
  return request({
    url:'/purchase/ordGoodsFilter',
    method:'post',
    data:data
  })
}

//采购排货获取筛选项 - 已安排
export function planPurchaseGoodsFilter(data) {
  return request({
    url:'/purchase/planGoodsFilter',
    method:'post',
    data:data
  })
}

//采购排货修改提货时间
export function changePurchasePlanDate(data) {
  return request({
    url:'/purchase/changePlanDate',
    method:'post',
    data:data
  })
}

//采购排货取消提货安排
export function cancelPurchaseGoodsPlan(data) {
  return request({
    url:'/purchase/cancelGoodsPlan',
    method:'post',
    data:data
  })
}

//采购排货提货自提信息
export function purchaseSelfTakeInfo(data) {
  return request({
    url:'/purchase/selfTakeInfo',
    method:'post',
    data:data
  })
}

//采购排货合同商品排货列表
export function getPurchaseGoodsPlanList(data) {
  return request({
    url:'/purchase/goodsPlanList',
    method:'post',
    data:data
  })
}

//采购排货合同商品排货
export function postPurchasePlanGoods(data) {
  return request({
    url:'/purchase/planOrderGoods',
    method:'post',
    data:data
  })
}

//跟进记录导入
export function trackingImport(data) {
  return request({
    url:'/tracking/import',
    method:'post',
    data:data
  })
}

//成交客户导出
export function hasOrderCustomers(data) {
  return request({
    url:'/customers/hasOrderCustomers',
    method:'post',
    data:data
  })
}


//客户购买过的商品列表
export function customersBuyGoodsList(data) {
  return request({
    url:'/customers/buyGoodsList',
    method:'post',
    data:data
  })
}

//获取指定商品关联数据
export function goodsRelationData(data) {
  return request({
    url:'/customers/goodsRelationData',
    method:'post',
    data:data
  })
}

//关联商品
export function relationBuyGoods(data) {
  return request({
    url:'/customers/relationBuyGoods',
    method:'post',
    data:data
  })
}

//保存客户粘度等级
export function changeCustomer(data) {
  return request({
    url:'/customers/changeCustomer',
    method:'post',
    data:data
  })
}


//员工花名册列表
export function rosterUser(data) {
  return request({
    url:'/user/roster',
    method:'post',
    data:data
  })
}

//员工详情
export function detailUser(data) {
  return request({
    url:'/user/detail',
    method:'post',
    data:data
  })
}

//员工任职列表
export function showOfficeUser(data) {
  return request({
    url:'/user/showOffice',
    method:'post',
    data:data
  })
}

//添加任职记录
export function addOfficeUser(data) {
  return request({
    url:'/user/addOffice',
    method:'post',
    data:data
  })
}

//编辑任职记录
export function upDateOfficeUser(data) {
  return request({
    url:'/user/updateOffice',
    method:'post',
    data:data
  })
}

//删除任职记录
export function deleteOffice(data) {
  return request({
    url:'/user/deleteOffice',
    method:'post',
    data:data
  })
}

//员工沟通列表
export function communicateListUser(data) {
  return request({
    url:'/user/communicateList',
    method:'post',
    data:data
  })
}

//员工添加沟通记录
export function addCommunicate(data) {
  return request({
    url:'/user/addCommunicate',
    method:'post',
    data:data
  })
}

//员工修改沟通记录
export function updateCommunicate(data) {
  return request({
    url:'/user/updateCommunicate',
    method:'post',
    data:data
  })
}

//员工删除沟通记录
export function deleteCommunicate(data) {
  return request({
    url:'/user/deleteCommunicate',
    method:'post',
    data:data
  })
}

//员工奖惩列表
export function showRewardUser(data) {
  return request({
    url:'/user/showReward',
    method:'post',
    data:data
  })
}

//员工添加用户奖惩记录
export function addReward(data) {
  return request({
    url:'/user/addReward',
    method:'post',
    data:data
  })
}

//员工编辑用户奖惩记录
export function updateReward(data) {
  return request({
    url:'/user/updateReward',
    method:'post',
    data:data
  })
}

//员工撤消用户奖惩记录
export function revokeReward(data) {
  return request({
    url:'/user/revokeReward',
    method:'post',
    data:data
  })
}


//员工删除用户奖惩记录
export function deleteReward(data) {
  return request({
    url:'/user/deleteReward',
    method:'post',
    data:data
  })
}

//员工培训列表
export function showUserTrainList(data) {
  return request({
    url:'/user/trainList',
    method:'post',
    data:data
  })
}

//员工添加用户培训记录
export function addTrain(data) {
  return request({
    url:'/user/addTrain',
    method:'post',
    data:data
  })
}

//员工修改用户培训记录
export function updateTrain(data) {
  return request({
    url:'/user/updateTrain',
    method:'post',
    data:data
  })
}

//员工删除培训记录
export function deleteTrain(data) {
  return request({
    url:'/user/deleteTrain',
    method:'post',
    data:data
  })
}

//员工教育列表
export function schoolListUser(data) {
  return request({
    url:'/user/schoolList',
    method:'post',
    data:data
  })
}

//新增员工教育列表
export function addSchool(data) {
  return request({
    url:'/user/addSchool',
    method:'post',
    data:data
  })
}

//编辑员工教育列表
export function updateSchool(data) {
  return request({
    url:'/user/updateSchool',
    method:'post',
    data:data
  })
}

//删除员工教育列表
export function deleteSchool(data) {
  return request({
    url:'/user/deleteSchool',
    method:'post',
    data:data
  })
}

//员工工作列表
export function workingListUser(data) {
  return request({
    url:'/user/workingList',
    method:'post',
    data:data
  })
}

//员工新增用户工作记录
export function addWorking(data) {
  return request({
    url:'/user/addWorking',
    method:'post',
    data:data
  })
}

//员工修改用户工作记录
export function updateWorking(data) {
  return request({
    url:'/user/updateWorking',
    method:'post',
    data:data
  })
}

//员工删除工作记录
export function deleteWorking(data) {
  return request({
    url:'/user/deleteWorking',
    method:'post',
    data:data
  })
}


//证书列表
export function majorListUser(data) {
  return request({
    url:'/user/majorList',
    method:'post',
    data:data
  })
}

//新增证书记录
export function addMajor(data) {
  return request({
    url:'/user/addMajor',
    method:'post',
    data:data
  })
}

//修改证书记录
export function updateMajor(data) {
  return request({
    url:'/user/updateMajor',
    method:'post',
    data:data
  })
}


//删除证书记录
export function deleteMajor(data) {
  return request({
    url:'/user/deleteMajor',
    method:'post',
    data:data
  })
}

//员工联系人列表
export function contactListUser(data) {
  return request({
    url:'/user/contactList',
    method:'post',
    data:data
  })
}

//员工新增联系人记录
export function addContact(data) {
  return request({
    url:'/user/addContact',
    method:'post',
    data:data
  })
}

//员工修改联系人记录
export function updateContact(data) {
  return request({
    url:'/user/updateContact',
    method:'post',
    data:data
  })
}

//员工删除联系人记录
export function deleteContact(data) {
  return request({
    url:'/user/deleteContact',
    method:'post',
    data:data
  })
}

//员工家庭成员列表
export function homeListUser(data) {
  return request({
    url:'/user/homeList',
    method:'post',
    data:data
  })
}

//员工新增家庭成员记录
export function addHome(data) {
  return request({
    url:'/user/addHome',
    method:'post',
    data:data
  })
}

//员工修改家庭成员记录
export function updateHome(data) {
  return request({
    url:'/user/updateHome',
    method:'post',
    data:data
  })
}

//员工修改家庭成员记录
export function deleteHome(data) {
  return request({
    url:'/user/deleteHome',
    method:'post',
    data:data
  })
}

//员工业绩列表
export function achievementListUser(data) {
  return request({
    url:'/user/achievementList',
    method:'post',
    data:data
  })
}

//新增员工合同
export function addContract(data) {
  return request({
    url:'/user/addContract',
    method:'post',
    data:data
  })
}


//员工合同列表
export function contractList(data) {
  return request({
    url:'/user/contractList',
    method:'post',
    data:data
  })
}
//修改员工合同列表
export function updateContract(data) {
  return request({
    url:'/user/updateContract',
    method:'post',
    data:data
  })
}

//删除员工合同列表
export function deleteContract(data) {
  return request({
    url:'/user/deleteContract',
    method:'post',
    data:data
  })
}

//员工异动列表
export function changeLogListUser(data) {
  return request({
    url:'/user/changeLogList',
    method:'post',
    data:data
  })
}

//员工详情修改记录
export function updateInfo(data) {
  return request({
    url:'/user/updateInfo',
    method:'post',
    data:data
  })
}

//异动修改
export function addChangeLog(data) {
  return request({
    url:'/user/addChangeLog',
    method:'post',
    data:data
  })
}

//操作记录
export function logListUser(data) {
  return request({
    url:'/user/operationLog',
    method:'post',
    data:data
  })
}

//员工附件列表
export function fileListUser(data) {
  return request({
    url:'/user/fileList',
    method:'post',
    data:data
  })
}

//员工新增附件
export function addFileUser(data) {
  return request({
    url:'/user/addFile',
    method:'post',
    data:data
  })
}


//员工删除附件
export function deleteFileUser(data) {
  return request({
    url:'/user/deleteFile',
    method:'post',
    data:data
  })
}


//员工概览
export function overviewUser(data) {
  return request({
    url:'/user/overview',
    method:'post',
    data:data
  })
}

//员工成长
export function growUpUser(data) {
  return request({
    url:'/user/growUp',
    method:'post',
    data:data
  })
}


//员工头像修改
export function updateLogoUser(data) {
  return request({
    url:'/user/updateLogo',
    method:'post',
    data:data
  })
}


//员工花名册导出
export function exportUserInfo(data) {
  return request({
    url:'/user/exportUserInfo',
    method:'post',
    data:data
  })
}


//员工奖惩导出
export function exportUserReward(data) {
  return request({
    url:'/user/exportUserReward',
    method:'post',
    data:data
  })
}


//员工合同导出
export function exportUserContract(data) {
  return request({
    url:'/user/exportUserContract',
    method:'post',
    data:data
  })
}


//员工沟通导出
export function exportUserCommunicate(data) {
  return request({
    url:'/user/exportUserCommunicate',
    method:'post',
    data:data
  })
}

//员工培训导出
export function exportUserTrain(data) {
  return request({
    url:'/user/exportUserTrain',
    method:'post',
    data:data
  })
}

//员工教育经历导出
export function exportSchool(data) {
  return request({
    url:'/user/exportSchool',
    method:'post',
    data:data
  })
}

//员工工作经历导出
export function exportWorking(data) {
  return request({
    url:'/user/exportWorking',
    method:'post',
    data:data
  })
}

//员工证书导出
export function exportMajor(data) {
  return request({
    url:'/user/exportMajor',
    method:'post',
    data:data
  })
}

//员工联系人导出
export function exportContact(data) {
  return request({
    url:'/user/exportContact',
    method:'post',
    data:data
  })
}

//员工家庭成员导出
export function exportHome(data) {
  return request({
    url:'/user/exportHome',
    method:'post',
    data:data
  })
}


//导入员工沟通
export function importCommunicate(data) {
  return request({
    url:'/user/importCommunicate',
    method:'post',
    data:data
  })
}


//导入员工信息
export function importUser(data) {
  return request({
    url:'/user/importUser',
    method:'post',
    data:data
  })
}

//导入员工联系人
export function importContact(data) {
  return request({
    url:'/user/importContact',
    method:'post',
    data:data
  })
}

//导入员工合同
export function importContract(data) {
  return request({
    url:'/user/importContract',
    method:'post',
    data:data
  })
}

//导入员工家庭成员
export function importHome(data) {
  return request({
    url:'/user/importHome',
    method:'post',
    data:data
  })
}

//导入员工证书
export function importMajor(data) {
  return request({
    url:'/user/importMajor',
    method:'post',
    data:data
  })
}


//导入员工奖惩
export function importReword(data) {
  return request({
    url:'/user/importReword',
    method:'post',
    data:data
  })
}


//导入员工教育
export function importSchool(data) {
  return request({
    url:'/user/importSchool',
    method:'post',
    data:data
  })
}


//导入员工培训
export function importTrain(data) {
  return request({
    url:'/user/importTrain',
    method:'post',
    data:data
  })
}


//导入员工工作经历
export function importWorking(data) {
  return request({
    url:'/user/importWorking',
    method:'post',
    data:data
  })
}

//月目标列表
export function mouthTargetList(data) {
  return request({
    url:'/purchase/mouthTargetList',
    method:'post',
    data:data
  })
}

//员工树形分类列表
export function productCustomersTreeTypeList(data) {
  return request({
    url:'/productCustomers/treeTypeList',
    method:'post',
    data:data
  })
}



//月目标新增
export function addMouthTarget(data) {
  return request({
    url:'/purchase/addMouthTarget',
    method:'post',
    data:data
  })
}

//添加分类
export function productCustomersAddType(data) {
  return request({
    url:'/productCustomers/addType',
    method:'post',
    data:data
  })
}

//修改树形分类
export function productCustomersUpdateType(data) {
  return request({
    url:'/productCustomers/updateType',
    method:'post',
    data:data
  })
}

//标签列表
export function productCustomersTagList(data) {
  return request({
    url:'/productCustomers/tagList',
    method:'post',
    data:data
  })
}


//添加标签
export function productCustomersAddTag(data) {
  return request({
    url:'/productCustomers/addTag',
    method:'post',
    data:data
  })
}

//编辑标签
export function productCustomersUpdateTag(data) {
  return request({
    url:'/productCustomers/updateTag',
    method:'post',
    data:data
  })
}

//我负责的客户
export function goodsLineMyCustomer(data) {
  return request({
    url:'/goodsLine/myCustomer',
    method:'post',
    data:data
  })
}

//我负责的产品线客户
export function goodsLineMyGoodsLine(data) {
  return request({
    url:'/goodsLine/myGoodsLine',
    method:'post',
    data:data
  })
}

//转移产品线
export function goodsLineMove(data) {
  return request({
    url:'/customerNew/goodsLineMove',
    method:'post',
    data:data
  })
}

//共享产品线
export function shareGoodsLine(data) {
  return request({
    url:'/customerNew/shareGoodsLine',
    method:'post',
    data:data
  })
}

//移入、移除回站
export function deleteGoodsLine(data) {
  return request({
    url:'/customerNew/deleteGoodsLine',
    method:'post',
    data:data
  })
}

//移入、移除公海
export function commonGoodsLine(data) {
  return request({
    url:'/customerNew/commonGoodsLine',
    method:'post',
    data:data
  })
}

//我的所有标签
export function myAllTags(data) {
  return request({
    url:'/customerNew/myAllTags',
    method:'post',
    data:data
  })
}


//资源池申请记录列表
export function customerNewApplyList(data) {
  return request({
    url:'/customerNew/applyList',
    method:'post',
    data:data
  })
}

//资源池申请转入
export function customerNewAddApply(data) {
  return request({
    url:'/customerNew/addApply',
    method:'post',
    data:data
  })
}

//资源池申请审核
export function customerNewAduApplyState(data) {
  return request({
    url:'/customerNew/aduApplyState',
    method:'post',
    data:data
  })
}


//添加我的客户产品线标签
export function addCustomerTags(data) {
  return request({
    url:'/customerNew/addCustomerTags',
    method:'post',
    data:data
  })
}


//资源池转移记录列表
export function customerNewLogList(data) {
  return request({
    url:'/customerNew/logList',
    method:'post',
    data:data
  })
}

//全部客户列表
export function customerAllCustomers(data) {
  return request({
    url:'/goodsLine/allCustomers',
    method:'post',
    data:data
  })
}

//全部客户产品线列表
export function customerAllGoodsLine(data) {
  return request({
    url:'/goodsLine/allGoodsLine',
    method:'post',
    data:data
  })
}


//新建客户-产品线
export function goodsLineAddCustomer(data) {
  return request({
    url:'/customerNew/addCustomer',
    method:'post',
    data:data
  })
}


//新增跟进产品线记录
export function goodsLineAddTracking(data) {
  return request({
    url:'/customerNew/addTracking',
    method:'post',
    data:data
  })
}


//新增/取消保留客户
export function retainGoodLine(data) {
  return request({
    url:'/customerNew/retainGoodLine',
    method:'post',
    data:data
  })
}

//获取客户产品线
export function getGoodsLine(data) {
  return request({
    url:'/customerNew/getGoodsLineByCustomer',
    method:'post',
    data:data
  })
}

//获取客户跟进记录
export function customerNewTrackingList(data) {
  return request({
    url:'/customerNew/trackingList',
    method:'post',
    data:data
  })
}


//删除客户跟进记录
export function customerNewDelTracking(data) {
  return request({
    url:'/customerNew/delTracking',
    method:'post',
    data:data
  })
}


//新建客户产品线
export function customerNewBatchGoodLine(data) {
  return request({
    url:'/customerNew/batchGoodLine',
    method:'post',
    data:data
  })
}


//客户产品线-客户查询
export function customerNewCustomerList(data) {
  return request({
    url:'/customerNew/customerList',
    method:'post',
    data:data
  })
}


//客户产品线-客户查询
export function customerNewImportGoodLine(data) {
  return request({
    url:'/customerNew/importGoodLine',
    method:'post',
    data:data
  })
}


//客户产品线-客户基本信息
export function customerNewBaseInfo(data) {
  return request({
    url:'/develop/baseInfo',
    method:'post',
    data:data
  })
}

//客户产品线-客户的关联客户列表
export function customerNewRelationCustomers(data) {
  return request({
    url:'/develop/relationCustomers',
    method:'post',
    data:data
  })
}

//客户产品线-客户的产品线成交数量
export function customerNewGoodsLineOrderNum(data) {
  return request({
    url:'/develop/goodsLineOrderNum',
    method:'post',
    data:data
  })
}

//客户产品线-客户产品线进度开发列表
export function customerNewCycleList(data) {
  return request({
    url:'/develop/cycleList',
    method:'post',
    data:data
  })
}


//客户产品线-客户产品线设置开发周期
export function customerNewCycleSet(data) {
  return request({
    url:'/develop/cycleSet',
    method:'post',
    data:data
  })
}

//客户产品线-客户收货地址列表
export function customerNewAddressList(data) {
  return request({
    url:'/develop/addressList',
    method:'post',
    data:data
  })
}

//客户产品线-客户开发周期确认
export function customerNewCycleConfirm(data) {
  return request({
    url:'/develop/cycleConfirm',
    method:'post',
    data:data
  })
}

//客户产品线-联系人列表
export function customerNewContactList(data) {
  return request({
    url:'/develop/contactList',
    method:'post',
    data:data
  })
}

//客户产品线-客户的使用材料列表
export function customerNewUseGoodsList(data) {
  return request({
    url:'/develop/useGoodsList',
    method:'post',
    data:data
  })
}

//客户产品线-客户的跟进记录列表
export function developTrackingList(data) {
  return request({
    url:'/develop/trackingList',
    method:'post',
    data:data
  })
}



//采购目标列表
export function purchaseTargetList(data) {
  return request({
    url:'/purchase/targetList',
    method:'post',
        data:data
      })
    }

//客户产品线-客户的合同记录列表
export function developOrderList(data) {
  return request({
    url:'/develop/orderList',
    method:'post',
    data:data
  })
}

//客户产品线-客户的推荐人列表
export function developIntroduceList(data) {
  return request({
    url:'/develop/introduceList',
    method:'post',
    data:data
  })
}

//客户产品线-客户操作日志
export function developLogList(data) {
  return request({
    url:'/develop/logList',
    method:'post',
    data:data
  })
}

//客户产品线-售后记录列表
export function developAfterSale(data) {
  return request({
    url:'/afterSale/list',
    method:'post',
    data:data
  })
}

//采购产品线列表
export function goodsClassUserList(data) {
  return request({
    url:'/purchase/goodsClassUserList',
    method:'post',
    data:data
  })
}

//客户产品线-售后单取消
export function developAfterSaleCancel(data) {
  return request({
    url:'/afterSale/cancel',
    method:'post',
    data:data
  })
}


//客户产品线-新增售后记录
export function developAfterSaleAdd(data) {
  return request({
    url:'/afterSale/add',
    method:'post',
    data:data
  })
}

//客户产品线-客户的订单及商品列表
export function developCustomerOrders(data) {
  return request({
    url:'/develop/customerOrders',
    method:'post',
    data:data
  })
}

//客户产品线-售后记录处理
export function developAfterSaleHandle(data) {
  return request({
    url:'/afterSale/handle',
    method:'post',
    data:data
  })
}

//客户产品线-客户基本信息编辑
export function developAfterEditBaseInfo(data) {
  return request({
    url:'/develop/editBaseInfo',
    method:'post',
    data:data
  })
}

//客户产品线-客户的产品线列表
export function developGoodsLineList(data) {
  return request({
    url:'/develop/goodsLineList',
    method:'post',
    data:data
  })
}

//客户产品线-客户试料申请
export function developAddGoodsTry(data) {
  return request({
    url:'/develop/addGoodsTry',
    method:'post',
    data:data
  })
}

//客户产品线-客户的质量协议列表
export function developAgreementList(data) {
  return request({
    url:'/develop/agreementList',
    method:'post',
    data:data
  })
}


//客户产品线-客户的试料记录列表
export function developGoodsTryList(data) {
  return request({
    url:'/develop/goodsTryList',
    method:'post',
    data:data
  })
}


//客户产品线-试料详情
export function developGoodsTryDetail(data) {
  return request({
    url:'/develop/goodsTryDetail',
    method:'post',
    data:data
  })
}

//客户产品线-试料填写结果
export function developGoodsTryHandle(data) {
  return request({
    url:'/develop/goodsTryHandle',
    method:'post',
    data:data
  })
}

//客户产品线-试料填写结果
export function developGoodsTryCancel(data) {
  return request({
    url:'/develop/goodsTryCancel',
    method:'post',
    data:data
  })
}


//客户产品线-客户的开票信息
export function developInvoiceInfo(data) {
  return request({
    url:'/develop/invoiceInfo',
    method:'post',
    data:data
  })
}


//客户产品线-客户的开票信息编辑
export function developInvoiceInfoSet(data) {
  return request({
    url:'/develop/invoiceInfoSet',
    method:'post',
    data:data
  })
}


//采购产品线新增
export function addGoodsLineUser(data) {
  return request({
    url:'/purchase/addGoodsLineUser',
    method:'post',
    data:data
  })
}

//客户产品线-产品线审核列表
export function customerNewGoodsListCheckList(data) {
  return request({
    url:'/customerNew/goodsListCheckList',
    method:'post',
    data:data
  })
}



//采购产品线图表
export function purchaseChart(data) {
  return request({
    url:'/purchase/chart',
     method:'post',
     data:data
    })
  }

//客户产品线-产品线审核操作
export function customerNewGoodsListCheck(data) {
  return request({
    url:'/customerNew/goodsListCheck',
    method:'post',
    data:data
  })
}

//客户产品线-新增产品线
export function developAddGoodsLine(data) {
  return request({
    url:'/develop/addGoodsLine',
    method:'post',
    data:data
  })
}

//客户产品线-修改产品线
export function developUpdateGoodsLine(data) {
  return request({
    url:'/develop/updateGoodsLine',
    method:'post',
    data:data
  })
}


//客户产品线-使用材料
export function developAddCustomerUseGoods(data) {
  return request({
    url:'/develop/addCustomerUseGoods',
    method:'post',
    data:data
  })
}

//客户产品线-产品线开发阶段详情
export function developCycleInfo(data) {
  return request({
    url:'/develop/cycleInfo',
    method:'post',
    data:data
  })
}

//客户产品线-设置开发阶段
export function developBatchSetTarget(data) {
  return request({
    url:'/develop/batchSetTarget',
    method:'post',
    data:data
  })
}

//客户产品线-删除产品线
export function developDelGoodsLine(data) {
  return request({
    url:'/develop/delGoodsLine',
    method:'post',
    data:data
  })
}

//客户产品线-获取产品线详情
export function developGoodsLineInfo(data) {
  return request({
    url:'/develop/goodsLineInfo',
    method:'post',
    data:data
  })
}


//客户销量排行
export function developTopSaleByCustomer(data) {
  return request({
    url:'/develop/topSaleByCustomer',
    method:'post',
    data:data
  })
}


//产品销量排行
export function developTopSaleByGoods(data) {
  return request({
    url:'/develop/topSaleByGoods',
    method:'post',
    data:data
  })
}


//业务员销量排行
export function developTopSaleByUser(data) {
  return request({
    url:'/develop/topSaleByUser',
    method:'post',
    data:data
  })
}

//业务员客户产品线数量报表
export function developCustomerGoodsLine(data) {
  return request({
    url:'/develop/customerGoodsLine',
    method:'post',
    data:data
  })
}

//客户产品线数量汇总
export function customerGoodsLineAnalysis(data) {
  return request({
    url:'/develop/customerGoodsLineAnalysis',
    method:'post',
    data:data
  })
}

//客户持有天数分析
export function haveGoodsLineDays(data) {
  return request({
    url:'/develop/haveGoodsLineDays',
    method:'post',
    data:data
  })
}

//客户跟进明细分析
export function trackingAnalysis(data) {
  return request({
    url:'/develop/trackingAnalysis',
    method:'post',
    data:data
  })
}


//产品线开发进度报表
export function developSummary(data) {
  return request({
    url:'/develop/developSummary',
    method:'post',
    data:data
  })
}


//客户开发步骤分析
export function developDetail(data) {
  return request({
    url:'/develop/developDetail',
    method:'post',
    data:data
  })
}


//客户开发月目标统计
export function developMonthSummary(data) {
  return request({
    url:'/develop/developMonthSummary',
    method:'post',
    data:data
  })
}

//客户跟进分析报表
export function trackingReport(data) {
  return request({
    url:'/develop/trackingReport',
    method:'post',
    data:data
  })
}

//绑定企微
export function bindingUrl(data) {
  return request({
    url:'/user/bindingWechat',
    method:'post',
    data:data
  })
}

//解绑企微
export function relieveWechat(data) {
  return request({
    url:'/user/relieveWechat',
    method:'post',
    data:data
  })
}

//消息模版列表
export function templateList(data) {
  return request({
    url:'/wechatNew/templateList',
    method:'post',
    data:data
  })
}

//消息模版参数
export function templateCode(data) {
  return request({
    url:'/wechatNew/templateCode',
    method:'post',
    data:data
  })
}


//消息模版新增
export function addTemplate(data) {
  return request({
    url:'/wechatNew/addTemplate',
    method:'post',
    data:data
  })
}

//消息模版详情
export function templateInfo(data) {
  return request({
    url:'/wechatNew/templateInfo',
    method:'post',
    data:data
  })
}

//消息模版状态修改
export function updateStatus(data) {
  return request({
    url:'/wechatNew/updateStatus',
    method:'post',
    data:data
  })
}

//消息日志列表
export function newLogList(data) {
  return request({
    url:'/wechatNew/newLogList',
    method:'post',
    data:data
  })
}

//消息日志列表删除
export function wechatNewBatchDelete(data) {
  return request({
    url:'/wechatNew/batchDelete',
    method:'post',
    data:data
  })
}


//导入产品线目标数据
export function importMyGoodsLine(data) {
  return request({
    url:'/customerNew/importMyGoodsLine',
    method:'post',
    data:data
  })
}


//获取产品线详情
export function goodsLineListById(data) {
  return request({
    url:'/customerNew/goodsLineListById',
    method:'post',
    data:data
  })
}

//获取客户所有产品线
export function goodLineByCustomer(data) {
  return request({
    url:'/customerNew/goodLineByCustomer',
    method:'post',
    data:data
  })
}


//获取财务报表图表
export function financechart(data) {
  return request({
    url:'/finance/chart',
    method:'post',
    data:data
  })
}

//获取财务报表数据
export function financechartList(data) {
  return request({
    url:'/finance/chartList',
    method:'post',
    data:data
  })
}

//转移待审核列表
export function goodsLineTransferList(data) {
  return request({
    url:'/customerNew/goodsLineTransferList',
    method:'post',
    data:data
  })
}


export function goodsLineLdHCcjInfo(data) {
  return request({
    url:'/customerNew/getTrackingDetail',
     method:'post',
        data:data
      })
    }

export function transferMove(data) {
  return request({
    url:'/customerNew/transferMove',
    method:'post',
    data:data
  })
}
export function customerGoodsLineCommon(data) {
  return request({
    url:'/customerNew/customerGoodsLineCommon',
    method:'post',
    data:data
  })
}

export function bigScreenTop(data) {
  return request({
    url:'/report/bigScreenTop',
    method:'post',
    data:data
  })
}

export function bigScreenLeft(data) {
  return request({
    url:'/report/bigScreenLeft',
    method:'post',
    data:data
  })
}

export function bigScreenRight(data) {
  return request({
    url:'/report/bigScreenRight',
    method:'post',
    data:data
  })
}

export function bigScreenDown(data) {
  return request({
    url:'/report/bigScreenDown',
    method:'post',
    data:data
  })
}
